<!--------------------------  抢购商品组件群  ----------------------------------->
<!-- 抢购商品组  风格一 -->
<script type="text/html" id="tpl_show_rush_goods">
    <div class="drag" data-itemid="<%itemid%>"  group_name="<%group_name%>" group_key="<%group_key%>" data-id="<%group_name%>" >
        <div class="goods_rush_1 goods_style_1" style="margin-bottom: <%style.marginBottom%>px;padding: <%style.margin||'10'%>px;background-color:<%style.bgColor||'#ffffff'%>">
            <%each data as item index%>
                <div class="block" style="padding:<%style.padding||'10'%>px;">
                    <div class="images">
                        <img src="<%imgsrc item.logo%>" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/default.png';"/>
                    </div>
                    <div class="describe">
                        <div class="title"><%item.goods_name%></div>
                        <div class="shop">
                            <div class="shop_title"><%item.storename%></div>
                            <div class="shop_distance">9999km</div>
                        </div>
                        <div class="footer_info">
                            <div class="sale_info">
                                <div class="price_info">
                                    <div class="price">¥<%item.price%></div>
                                    <%if item.vipstatus == 1%>
                                        <div class="old_price">¥<%item.oldprice%></div>
                                    <%/if%>
                                </div>
                                <div class="sale_num">
                                    <div class="buy_bg" style="width: <%item.buy_percentage%>%"></div>
                                    <div class="buy_num">已抢<%item.buy_num%>件</div>
                                </div>
                            </div>
                            <div class="button <%if item.status == 1%>button-remind<%else if item.status == 2%><%else%>button-end<%/if%>">
                                <%if item.status == 1%> 提醒我 <%else if item.status == 2%> 马上抢 <%else%> 已结束 <%/if%>
                            </div>
                        </div>
                    </div>
                </div>
            <%/each%>
        </div>
    </div>
</script>
<!-- 抢购商品组  风格二 -->
<script type="text/html" id="tpl_show_rush_goods2">
    <style>
        #s<%itemid%> .block_item{margin-right: <%style.padding||'0'%>px;}
        #s<%itemid%> .block_item:nth-child(2n){margin-right: 0px;}
    </style>
    <div class="drag" data-itemid="<%itemid%>"  group_name="<%group_name%>" group_key="<%group_key%>" data-id="<%group_name%>">
        <div class="goods_rush_2 goods_style_2" style="margin-bottom: <%style.marginBottom%>px;padding: <%style.margin||'0'%>px;background-color:<%style.bgColor||'#ffffff'%>;">
            <div id="s<%itemid%>" class="block" style="padding:<%style.padding||'0'%>px">
                <%each data as val index%>
                <div class="block_item" style="width: calc((100% - <%style.padding||'0'%>px) / 2);">
                    <div class="images">
                        <img src="<%imgsrc val.logo%>" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/default.png';"/>
                        <%if params.marker_set == 1%>
                        <div class="marker" style="background: <%style.marker_bg||'#FF4444'%>;color: <%style.marker_color||'#FFFFFF'%>;">砍价</div>
                        <%/if%>
                    </div>
                    <div class="describe">
                        <div class="name"><%val.goods_name%></div>
                        <div class="price_info">¥<%val.price%>元
                            <%if val.vipstatus == 1%>
                                <span class="vip">会员</span>
                                <span class="discount">优惠<%val.discount_price%>元</span>
                            <%/if%>
                        </div>
                        <div class="pv_info">
                            <div class="old_priec">¥<%val.oldprice%></div>
                            <div class="pv"><%val.buy_num%>人喜欢</div>
                        </div>
                    </div>
                </div>
                <%/each%>
            </div>
        </div>
    </div>
</script>
<!-- 抢购商品组  风格三 -->
<script type="text/html" id="tpl_show_rush_goods3">
    <div class="drag" data-itemid="<%itemid%>"  group_name="<%group_name%>" group_key="<%group_key%>" data-id="<%group_name%>">
        <div class="goods_rush_3 goods_style_3" style="margin-bottom: <%style.marginBottom%>px;padding: <%style.margin||'0'%>px;background-color:<%style.bgColor||'#ffffff'%>;">
            <%each data as item index%>
            <div class="goodslist" style="padding: <%style.padding||'15'%>px;">
                <div class="goodslist-i" v-for="(item, key) in goodsList" :key="key">
                    <div class="a">
                        <div class="goodslist-i-t">
                            <img src="<%imgsrc item.long_logo%>" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/default.png';"/>
                            <%if params.sort_icon == 1%>
                                <div class="top_top">TOP <%index.substring(index.length-2)%></div>
                            <%/if%>
                            <%if params.buy_user == 1%>
                                <div class="qglist-i-t-bar">
                                    <div class="qglist-i-t-bar-d">
                                        <div class="qglist-i-t-bar-l">
                                            <div class="i icon iconfont icon-hotfill"></div>喜欢<div class="em"><%item.user_num%></div>
                                        </div>
                                        <div class="qglist-i-t-bar-r">
                                            <%each item['user_list'] as val%>
                                            <div class="i"><img src="<%val%>" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/default.png';"/></div>
                                            <%/each%>
                                        </div>
                                    </div>
                                </div>
                            <%/if%>
                        </div>
                    </div>
                    <div class="goodslist-i-c">
                        <div class="goodslist-i-c-t">
                            <div class="goodslist-i-c-t-l"><%item.storename%></div>
                            <div class="goodslist-i-c-t-r">999m</div>
                        </div>
                        <div class="goodslist-i-c-c">
                            <div class="a">
                                <div class="i"><%params.goodsLabel||'抢购'%></div>
                                <%item.goods_name%>
                            </div>
                        </div>
                        <div class="goodslist-i-c-c2">
                            <div class="h1"><%item.price%><div class="i inline">元</div>
                                <%if item.vipstatus == 1%>
                                <div class="span"><div class="i">会员</div>优惠<%item.discount_price%>元</div>
                                <%/if%>
                            </div>
                            <div class="h2">
                                <div class="a">购买</div>
                            </div>
                        </div>
                        <div class="goodslist-i-c-b">
                            <div class="p">
                                <div class="span">原价<%item.oldprice%></div>
                                <div class="em"><%item.buy_num%>人喜欢</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <%/each%>
        </div>
    </div>
</script>
<!-- 抢购商品组  风格四 -->
<script type="text/html" id="tpl_show_rush_goods4">
    <div class="drag" data-itemid="<%itemid%>"  group_name="<%group_name%>" group_key="<%group_key%>" data-id="<%group_name%>">
        <div class="goods_rush_4 goods_style_4" style="margin-bottom: <%style.marginBottom||'1'%>px;padding: <%style.margin||'0'%>px;background-color:<%style.bgColor||'#ffffff'%>;">
            <div class="transverse" style="padding: <%style.padding||'0'%>px;">
                <div class="transverse_list">
                    <div class="goods_father">
                        <%each data as item%>
                            <div class="goods_item"  style="padding-right: <%style.padding||'0'%>px;">
                                <div class="goods_img">
                                    <img class="image" src="<%imgsrc item.logo%>" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/default.png';"/>
                                </div>
                                <div class="goods_tit"><%item.goods_name%></div>
                                <div class="goods_price">
                                    <div class="present_price">
                                        <div class="span">￥<%item.price%></div>
                                    </div>
                                    <%if item.oldprice%>
                                    <div class="original_price">￥<%item.oldprice%></div>
                                    <%/if%>
                                </div>
                            </div>
                        <%/each%>
                    </div>
                </div>
            </div>
        </div>
    </div>
</script>

